﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="UCLHLCLAIHANXX.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHLCLAIHANXX" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<link href="/css/inputBgColor.css" rel="stylesheet" />
<script type="text/javascript">
    function gvListFocusedChange()
    {
        UCLHLCLAIHANXX_btn.onClick();
    }
    function setListChecked(s)
    {
        alert(s.GetChecked());
    }
</script>
<div style="display:none;">
    <dx:ASPxButton ID="btnPerformServer"  ClientInstanceName="UCLHLCLAIHANXX_btn" runat="server" Text="ASPxButton" OnClick="btnPerformServer_Click"></dx:ASPxButton>
</div>
<dx:ASPxGridView ID="gvList" ClientInstanceName="gvList" runat="server" OnHtmlRowPrepared="gvLH_HtmlRowPrepared" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1"
    Width="100%" OnFocusedRowChanged="gvList_FocusedRowChanged" EnableCallBacks="false" ClientSideEvents-FocusedRowChanged="function(s,e){gvListFocusedChange();}">
    <Columns>
        <dx:GridViewDataTextColumn Caption="" Width="30px">
          <%--  <HeaderTemplate>
                 <dx:ASPxCheckBox ID="cbAll" runat="server" ClientSideEvents-CheckedChanged="function(s,e){setListChecked(s)}"></dx:ASPxCheckBox>    
            </HeaderTemplate>--%>
            <DataItemTemplate>
                <dx:ASPxCheckBox ID="cid" runat="server"></dx:ASPxCheckBox>                
                <asp:HiddenField ID="id" runat="server" Value='<%#Eval("ID") %>' />
                <asp:HiddenField ID="laihanbh" runat="server" Value='<%#Eval("S_LAIHANBH") %>' />
                <asp:HiddenField ID="yonghuh" runat="server" Value='<%#Eval("S_YONGHUBH") %>' />
                <asp:HiddenField ID="hqueren" runat="server" Value='<%#Eval("I_DANGQIANBZQR") %>' />
            </DataItemTemplate>
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn FieldName="S_LAIHANBH" Caption="登记文号" Width="90px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn FieldName="S_YONGHUBH" Caption="用户号" Width="60px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="200px">
        </dx:GridViewDataTextColumn>
         <dx:GridViewDataTextColumn Caption="" Width="30px" FieldName="I_DANGQIANBZQR"  Visible="false">
                                </dx:GridViewDataTextColumn>
    </Columns>
    <Settings VerticalScrollableHeight="260" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
    <SettingsBehavior AllowFocusedRow="True" ColumnResizeMode="Control"  AllowSort="False"/>

    <SettingsPager Mode="EndlessPaging" PageSize="100" AlwaysShowPager="true" FirstPageButton-Visible="true" />
    <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />

</dx:ASPxGridView>
<div style="height:3px"></div>
<fieldset runat="server" id="trLaiHanContent" style="border: 1px solid cornflowerblue; width: 91%;">
    <legend style="font-weight: bold">
        <asp:Label ID="lblLaiHanContentTip" runat="server" Text="">来函内容</asp:Label></legend>
    <dx:ASPxMemo ID="txtLaiHanContent" runat="server" Width="100%" Height="120px"></dx:ASPxMemo>
</fieldset>
<fieldset runat="server" id="trYWYContent" style="border: 1px solid cornflowerblue; width: 91%;">
    <legend style="font-weight: bold">业务员意见</legend>
    <dx:ASPxMemo ID="txtYWYContent" runat="server" Width="100%" Height="120px"></dx:ASPxMemo>
</fieldset>
